package com.kksoft.readcm.objects;

import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.kksoft.readcm.a.Appconfig;
import com.kksoft.readcm.a.ah;
import com.kksoft.readcm.c.f;
import java.util.Map;

public final class aq
  implements f
{
  ImageView a = null;
  private View b;
  private TextView c = null;
  private TextView d = null;
  private TextView e = null;
  private ProgressBar f = null;
  private ImageView g = null;
  private l h;
  private boolean i = false;
  private boolean j = false;

  aq(ReadListAdapter paramo, View paramView, int paramInt)
  {
    this.b = paramView;
    TextView localTextView1 = (TextView)paramView.findViewById(2131361901);
    this.c = localTextView1;
    TextView localTextView2 = (TextView)paramView.findViewById(2131361902);
    this.d = localTextView2;
    ProgressBar localProgressBar = (ProgressBar)paramView.findViewById(2131361900);
    this.f = localProgressBar;
    ImageView localImageView1 = (ImageView)paramView.findViewById(2131361899);
    this.a = localImageView1;
    switch (paramInt)
    {
    default:
    case 1:
    case 2:
    case 3:
    }
    while (true)
    {
      return;
//      TextView localTextView3 = (TextView)paramView.findViewById(2131361904);
//      this.e = localTextView3;
//      continue;
//      ImageView localImageView2 = (ImageView)paramView.findViewById(2131361903);
//      this.g = localImageView2;
    }
  }
  
  static void a(aq aq1)
  {
      aq1.e();
  }

  private void c()
  {
    TextView localTextView1 = this.c;
    String str1 = this.h.l();
    localTextView1.setText(str1);
    TextView localTextView2 = this.d;
    String str2 = this.h.h();
    localTextView2.setText(str2);
    //Map localMap = o.a(this.k);
    View localView = this.b;
    String str3 = this.h.h();
    //Object localObject = localMap.put(localView, str3);
    ImageView localImageView = this.a;
    ah localah = Appconfig.getThis().i();
    String str4 = this.h.h();
    Bitmap localBitmap = localah.a(str4);
    localImageView.setImageBitmap(localBitmap);
  }

  private void d()
  {
    boolean bool = this.h.F();
    if (bool)
    {
      this.f.setVisibility(0);
      this.a.setVisibility(8);
      if ((!bool) && (this.h.H()))
//        break label91;
//      this.b.setEnabled(0);
//      this.c.setEnabled(0);
      this.a.setAlpha(127);
    }
    while (true)
    {
      return;
//      this.f.setVisibility(8);
//      this.a.setVisibility(0);
//      break;
//      label91: this.b.setEnabled(1);
//      this.c.setEnabled(1);
//      this.a.setAlpha(255);
    }
  }

  private void e()
  {
    if (this.h.H())
    {
//      Map localMap1 = o.b(this.k);
      Integer localInteger1 = Integer.valueOf(this.h.a());
//      if (localMap1.containsKey(localInteger1))
//      {
//        ImageView localImageView1 = this.g;
//        Drawable localDrawable1 = o.c(this.k);
//        localImageView1.setImageDrawable(localDrawable1);
//      }
    }
//    while (true)
//    {
//      return;
//      ImageView localImageView2 = this.g;
//      Drawable localDrawable2 = o.d(this.k);
//      localImageView2.setImageDrawable(localDrawable2);
//      continue;
//      Map localMap2 = o.b(this.k);
//      Integer localInteger2 = Integer.valueOf(this.h.a());
//      if (localMap2.containsKey(localInteger2))
//      {
//        if (o.e(this.k) == 1)
//        {
//          ImageView localImageView3 = this.g;
//          Drawable localDrawable3 = o.f(this.k);
//          localImageView3.setImageDrawable(localDrawable3);
//          continue;
//        }
//        ImageView localImageView4 = this.g;
//        Drawable localDrawable4 = o.g(this.k);
//        localImageView4.setImageDrawable(localDrawable4);
//        continue;
//      }
//      if (o.e(this.k) == 1)
//      {
//        ImageView localImageView5 = this.g;
//        Drawable localDrawable5 = o.h(this.k);
//        localImageView5.setImageDrawable(localDrawable5);
//        continue;
//      }
//      ImageView localImageView6 = this.g;
//      Drawable localDrawable6 = o.i(this.k);
//      localImageView6.setImageDrawable(localDrawable6);
//    }
  }

  public final void a()
  {
    d();
  }

  public final void a(l paraml, int paramInt)
  {
    if (this.h != null)
      this.h.b(this);
    this.h = paraml;
    this.h.a(this);
    c();
    d();
    switch (paramInt)
    {
    default:
    case 1:
    case 2:
    case 3:
    }
//    while (true)
//    {
//      return;
//      TextView localTextView = this.e;
//      String str1 = String.valueOf(this.h.s());
//      String str2 = str1 + "%";
//      localTextView.setText(str2);
//      continue;
//      e();
//    }
  }

  public final boolean a(int paramInt)
  {
    int m = this.h.a();
    if (paramInt == m);
    for (int n = 1; ; n = 0)
      return false;
  }

  public final void b()
  {
    c();
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.kksoft.readcm.objects.aq
 * JD-Core Version:    0.6.0
 */